#!/usr/bin/env python

def _(s): return s

import wx

def say(msg, title, icon=wx.ICON_INFORMATION):
    """
    Display a message box.
    """
    dlg = wx.MessageDialog(None, "\n%s" % msg, title, icon)
    dlg.ShowModal()
    dlg.Destroy()
    
def ask(msg, title, style=wx.YES_NO|wx.NO_DEFAULT|wx.CANCEL):
    """
    Display a message box.
    """
    dlg = wx.MessageDialog(None, "\n%s" % msg, title, style)
    val = dlg.ShowModal()
    dlg.Destroy()
    return val